package com.jx.jingxuan.controller.home;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jx.jingxuan.R;

/**
 * <li>Package:com.jx.jingxuan.controller.home</li>
 * <li>Author: Administrator  </li>
 * <li>Date: 2019/3/19</li>
 * <li>Description:   </li>
 */
public class HomeBaoAdapter extends RecyclerView.Adapter<HomeBaoAdapter.BaoViewHolder> {
    @Override
    public HomeBaoAdapter.BaoViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new BaoViewHolder(LayoutInflater.from(parent.getContext()).inflate(R.layout.home_bao_item, null));
    }

    @Override
    public void onBindViewHolder(HomeBaoAdapter.BaoViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 10;
    }

    public static class BaoViewHolder extends RecyclerView.ViewHolder {

        public BaoViewHolder(View itemView) {
            super(itemView);
        }
    }
}
